function initEcAd() {
	pageCount= $('[data-role=page]').length;
	document.write("<div id=page_outbox style='position: absolute;visibility:hidden;z-index:1'><div id=page_box1>"+current_area+"/"+pageCount+"</div></div>");
	document.all.page_outbox.style.posTop =200;
	document.all.page_outbox.style.visibility = 'visible'
	MoveRightLayer('page_outbox');
}

function MoveRightLayer(layerName) {
	var x = 5;
	var y =1300;
	var diff = (document.body.scrollTop + y - document.all.page_box.style.posTop)*.40;
	var y = document.body.scrollTop + y - diff;
	eval("document.all." + layerName + ".style.posTop = y");
	eval("document.all." + layerName + ".style.posRight =-5");
	setTimeout("MoveRightLayer('page_outbox');", 20);
}
